const express = require('express');
const app = express();

app.use((req, res, next) => {
  console.log('有请求进入')
  next();
})

app.listen(5000, err => {
  if(!err) console.log('服务器启动成功，端口为5000')
})